package myfirstproject.firstproject.Service;

import myfirstproject.firstproject.domain.DTO.UserDTO;
import myfirstproject.firstproject.domain.DTO.UserLoginDTO;
import myfirstproject.firstproject.domain.DTO.UserQueryDTO;
import myfirstproject.firstproject.domain.VO.UserVo;
import myfirstproject.firstproject.domain.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import myfirstproject.firstproject.result.PageResult;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author author
 * @since 2024-09-16
 */
public interface IUserService extends IService<User> {
    void saveUser(UserDTO userDTO);

    boolean checkID(String username);

    void updateUser(UserDTO userDTO);

    UserVo queryUserAndAddressById(String id);

    PageResult<UserVo> queryUsersPage(UserQueryDTO query);

    User login(UserLoginDTO userDTO);
}
